<TestCase testName="Test_05_Orchestration1">

	<TestSetup>
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Rec_01\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Send_01\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>
	</TestSetup>

	<TestExecution>
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileCreateStep">
			<SourcePath>.\..\..\TestData\InDoc1.xml</SourcePath>
			<CreationPath>.\..\..\TestData\Rec_01\InDoc1.xml</CreationPath>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileCreateStep">
			<SourcePath>.\..\..\TestData\InDoc1.xml</SourcePath>
			<CreationPath>.\..\..\TestData\Rec_01\InDoc2.xml</CreationPath>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileValidateStep">
			<Timeout>10000</Timeout>
			<Directory>.\..\..\TestData\Send_01\</Directory>
			<SearchPattern>*.xml</SearchPattern>
			<DeleteFile>true</DeleteFile>

			<ValidationStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.XmlValidationStep">
				<XmlSchemaPath>.\..\..\TestData\PO_Ack.xsd</XmlSchemaPath>
				<XmlSchemaNameSpace>http://TestFrameworkDemo.PO_Ack</XmlSchemaNameSpace>
				<XPathList>
					<XPathValidation query="/*[local-name()='POAck' and namespace-uri()='http://TestFrameworkDemo.PO_Ack']/*[local-name()='PoNumber' and namespace-uri()='']">1234</XPathValidation>
					<XPathValidation query="/*[local-name()='POAck' and namespace-uri()='http://TestFrameworkDemo.PO_Ack']/*[local-name()='Status' and namespace-uri()='']">OK</XPathValidation>
				</XPathList>
			</ValidationStep>
		</TestStep>

	</TestExecution>

	<!-- Test cleanup: test cases should always leave the system in the state they found it -->
	<TestCleanup>
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep" failOnError="false" >
			<Directory>.\..\..\TestData\Rec_01\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep" failOnError="false" >
			<Directory>.\..\..\TestData\Send_01\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>
	</TestCleanup>
</TestCase>

